package com.xiao.wiki.controller;

import com.xiao.wiki.domain.Test;
import com.xiao.wiki.service.TestService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：降蓝
 * @description：TODO
 * @date ：2021/11/5 11:00
 */
@RestController
public class TestController {

    @Resource
    private TestService testService;


    @GetMapping("/test/list")
    public List<Test> list() {
        return testService.list();
    }
}
